<template>
  <div class="addorupdataMyhouse">
      <div class="myContainer">
          <BaseTitle :title="addorupdate?'修改房屋':'新增房屋'"></BaseTitle>
      </div>
      <div class="myContainer">
          <MyInput title="所在城市" :isClic="true" :value="city" placeholder="请选择所在城市" @click="confirm">
              <div slot="rightPop">
                  <image src="https://fangguaner.wm76.mtnet.ren/static/applet/right.png" mode="widthFix" class="rightPopImg" />
              </div>
          </MyInput>
          <MyInput title="小区名称" placeholder="请输入小区名称">
              <div slot="rightPop">
                  <image src="https://fangguaner.wm76.mtnet.ren/static/applet/right.png" mode="widthFix" class="rightPopImg" />
              </div>
          </MyInput>

          <MyInput title="面积" placeholder="请输入房屋面积">
              <div slot="rightPop">
                  m2
              </div>
          </MyInput>

           <MyInput title="户型" :isClic="true"  placeholder="请选择户型">
              <div slot="rightPop">
                  <image src="https://fangguaner.wm76.mtnet.ren/static/applet/right.png" mode="widthFix" class="rightPopImg" />
              </div>
          </MyInput>

          <MyInput title="朝向" :isClic="true"  placeholder="朝向">
              <div slot="rightPop">
                  <image src="https://fangguaner.wm76.mtnet.ren/static/applet/right.png" mode="widthFix" class="rightPopImg" />
              </div>
          </MyInput>

          <MyInput title="楼层" :isClic="true"  placeholder="请选择楼层">
              <div slot="rightPop">
                  <image src="https://fangguaner.wm76.mtnet.ren/static/applet/right.png" mode="widthFix" class="rightPopImg" />
              </div>
          </MyInput>

          <MyInput title="总楼层" :isClic="true"  placeholder="请选择总楼层">
              <div slot="rightPop">
                  <image src="https://fangguaner.wm76.mtnet.ren/static/applet/right.png" mode="widthFix" class="rightPopImg" />
              </div>
          </MyInput>

          <MyInput title="装修" :isClic="true"  placeholder="请选择装修">
              <div slot="rightPop">
                  <image src="https://fangguaner.wm76.mtnet.ren/static/applet/right.png" mode="widthFix" class="rightPopImg" />
              </div>
          </MyInput>

          <MyInput title="出售价格" :isClic="true"  placeholder="请输入出售价格">
              <div slot="rightPop">
                  万元
              </div>
          </MyInput>

          <MyInput title="出租价格" :isClic="true"  placeholder="请输入出租价格">
              <div slot="rightPop">
                  万/月
              </div>
          </MyInput>

      </div>


      <div class="fixedBtn">
        <Mybotton
            title="提交"
            type="danger"
            :radius="40"
          ></Mybotton>
    </div>
  </div>
</template>

<script>
import BaseTitle from '../../components/BaseTitle/index.vue'
import MyInput from '../../components/MyInput/index.vue'
import Mybotton from '../../components/Mybotton/index.vue'

export default {
    data () {
        return {
            addorupdate: false,
            city: '成都'
        }
    },
    components: {
        BaseTitle,
        MyInput,
        Mybotton
    },
    onLoad(options){
        if(options.houseData){
            this.addorupdate = true
            uni.setNavigationBarTitle({
            　　title: '修改房屋'
            })
        }else{
            uni.setNavigationBarTitle({
            　　title: '新增房屋'
            })
        }
    }
}
</script>

<style scoped lnag="scss">
.rightPopImg{
    width: 15rpx
}
.addorupdataMyhouse{
    padding-bottom: 120rpx;
    box-sizing: border-box;
}
.fixedBtn{
    position: fixed;
    background: #FFF;
    width: 100%;
    height: 100rpx;
    bottom: 0;
    padding: 10rpx 20rpx;
    box-sizing: border-box;
}
</style>